package com.example.myapplication.util;

import com.google.gson.Gson;

public class GsonHelper {
    public  static <T> void toBean(String gson,Class<T> classOfT){
        new Gson().fromJson(gson,classOfT);
    }
    public static String toJsonStr(Object object){
       return new Gson().toJson(object);
    }

}
